Xbasic

UDF_LOAD Function

Syntax

Script_Contents as C = UDF_LOAD( udf_name as C [, Password as C ] )

Script_Contents as B = UDF_LOAD( udf_name as C [, Password as C ] )

Arguments

udf_nameCharacter

The name of a function.

PasswordCharacter

Optional. The password needed to open a function if it is password protected.

Description

Return udf contents (optional password can be used to load protected scripts).

Discussion

UDF_LOAD() returns a character string or blob that contains the contents of a global function specified by Function_Name. If the function has been password protected, you need to specify the Password in order to retrieve the function.

Example

Loads the function into a variable, "X".

dim X as B
X = udf_load("export_sales")

See Also